/*
 * StatelessRemoteClientSessionUtil.java
 *
 * Created on 20 May 2004, 11:49
 */

package com.velocityme.client.utility;

import com.velocityme.interfaces.*;
import java.rmi.RemoteException;
import javax.ejb.CreateException;
import javax.naming.NamingException;

/**
 *
 * @author  Robert
 */
public class StatelessRemoteClientSessionUtil {
    
    private static RemoteClientSession m_cachedRemoteClientSession = null;
    
    public static RemoteClientSession getSession() throws RemoteException, NamingException, CreateException {
        if (m_cachedRemoteClientSession == null)
            m_cachedRemoteClientSession = RemoteClientSessionUtil.getHome().create();
        return m_cachedRemoteClientSession;
    }
    
}
